package com.xy.entity.order;

import com.xy.common.jpa.AbstractTimestampEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Thinkpad on 2018/1/18.
 */
@Entity
@Data
@Table(name = "order_postpone")
public class OrderPostpone extends AbstractTimestampEntity {

//    private String orderUuid;//订单id

    private Date opsAt;//用户操作时间

    private int postponeDays;//延期天数

    private BigDecimal postponeMoney;//延期金额

    @ManyToOne(cascade = {CascadeType.REFRESH},fetch = FetchType.EAGER)
    @JoinColumn(name = "order_uuid")
    private OrderMain orderMain;



}
